export type MediaType = "movie" | "tv" | "anime";

export interface Response<T> {
  code: number;
  msg: string;
  data: T;
}

export interface MovieItem {
  id: number;
  createAt: Date;
  createBy: number;
  updateAt: Date;
  updateBy: number;
  version: number;
  delState: number;
  movieName: string;
  cover: string;
  year: number;
  desc: string;
  director: string;
  actor: string;
  type: number;
  tags: string;
  region: string;
  sourceId: string;
}

export interface ChannelItem {
  id: number;
  createAt: string;
  createBy: number;
  updateAt: string;
  updateBy: number;
  version: number;
  delState: number;
  movieId: number;
  channelName: string;
}

export interface EpisodeItem {
  id: number;
  createAt: string;
  createBy: number;
  updateAt: string;
  updateBy: number;
  version: number;
  delState: number;
  movieId: number;
  name: string;
  channelName: string;
  onlineUrl: string;
  cacheUrl: string;
}

export interface TaskItem {
  createAt: string;
  createBy: number;
  delState: number;
  id: number;
  movieId: 409;
  process: number;
  remark: string;
  sourceId: "189699";
  status: number;
  taskName: string;
  type: number;
  updateAt: string;
  updateBy: number;
  version: number;
}
